import { BasicDataEncoder } from '../BasicDataEncoder';
import { Info } from '../GyroscopeControl';

export class FlightGearDataEncoder extends BasicDataEncoder {
  public encode(data: Info): string {
    let str = "\n";
    str += data.x.toString();
    str += ",";
    str += data.y.toString();
    str += ",";
    str += data.z.toString();
    str += "\n";
    return str;
  }
}